package com.abc.pay.client;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Component
@Configuration
public class TrustMerchant {

    @Value("${coffee.configSourceMethod}")
    private String configSourceMethod = "file";

    @Value("${coffee.configSourceClass}")
    private String configSourceClass = "com.abc.pay.client.MerchantParaFromFile";

    @Value("${coffee.trustPayConnectMethod}")
    private String trustPayConnectMethod = "https";

    @Value("${coffee.trustPayServerName}")
    private String trustPayServerName = "pay.abchina.com";

    @Value("${coffee.trustPayServerPort}")
    private String trustPayServerPort = "443";

    @Value("${coffee.trustPayNewLine}")
    private String trustPayNewLine = "2";

    @Value("${coffee.trustPayTrxURL}")
    private String trustPayTrxURL = "/ebus/ReceiveMerchantTrxReqServlet";

    @Value("${coffee.trustPayFileTrxURL}")
    private String trustPayFileTrxURL = "/ebussettle/ReceiveMerchantFileTrxReqServlet";

    @Value("${coffee.trustPayIETrxURL}")
    private String trustPayIETrxURL = "https://pay.abchina.com/ebus/ReceiveMerchantIERequestServlet";

    @Value("${coffee.merchantErrorURL}")
    private String merchantErrorURL = "https://pay.abchina.com/ebus/MerchantIEFailure.aspx";

    @Value("${coffee.trustPayCertFile}")
    private String trustPayCertFile = "TrustPay.cer";

    @Value("${coffee.merchantID}")
    private String merchantID = "103881054280033";

    @Value("${coffee.printLog}")
    private String printLog = "true";

    @Value("${coffee.logPath}")
    private String logPath = "/opt/kxmall/logs/";

    @Value("${coffee.merchantCertFile}")
    private String merchantCertFile = "103881055592733.pfx";

    @Value("${coffee.merchantCertPassword}")
    private String merchantCertPassword = "95599";

    @Value("${coffee.pfxFile}")
    private String pfxFile = "ABC_OpenBank_Sandbox.pfx";

    @Value("${coffee.pfxPwd}")
    private String pfxPwd = "111111";

    @Value("${coffee.cerFile}")
    private String cerFile = "ABC_OpenBank_Sandbox.cer";

    @Value("${coffee.appId}")
    private String appId = "bc3a5819-a189-40e0-95de-ca2baaf2410b";

    @Value("${coffee.appSecret}")
    private String appSecret = "a3cd0618b56440679989a0d88be8cdc0f7f245ad";

    public String getConfigSourceMethod() {
        return configSourceMethod;
    }

    public void setConfigSourceMethod(String configSourceMethod) {
        this.configSourceMethod = configSourceMethod;
    }

    public String getConfigSourceClass() {
        return configSourceClass;
    }

    public void setConfigSourceClass(String configSourceClass) {
        this.configSourceClass = configSourceClass;
    }

    public String getTrustPayConnectMethod() {
        return trustPayConnectMethod;
    }

    public void setTrustPayConnectMethod(String trustPayConnectMethod) {
        this.trustPayConnectMethod = trustPayConnectMethod;
    }

    public String getTrustPayServerName() {
        return trustPayServerName;
    }

    public void setTrustPayServerName(String trustPayServerName) {
        this.trustPayServerName = trustPayServerName;
    }

    public String getTrustPayServerPort() {
        return trustPayServerPort;
    }

    public void setTrustPayServerPort(String trustPayServerPort) {
        this.trustPayServerPort = trustPayServerPort;
    }

    public String getTrustPayNewLine() {
        return trustPayNewLine;
    }

    public void setTrustPayNewLine(String trustPayNewLine) {
        this.trustPayNewLine = trustPayNewLine;
    }

    public String getTrustPayTrxURL() {
        return trustPayTrxURL;
    }

    public void setTrustPayTrxURL(String trustPayTrxURL) {
        this.trustPayTrxURL = trustPayTrxURL;
    }

    public String getTrustPayFileTrxURL() {
        return trustPayFileTrxURL;
    }

    public void setTrustPayFileTrxURL(String trustPayFileTrxURL) {
        this.trustPayFileTrxURL = trustPayFileTrxURL;
    }

    public String getTrustPayIETrxURL() {
        return trustPayIETrxURL;
    }

    public void setTrustPayIETrxURL(String trustPayIETrxURL) {
        this.trustPayIETrxURL = trustPayIETrxURL;
    }

    public String getMerchantErrorURL() {
        return merchantErrorURL;
    }

    public void setMerchantErrorURL(String merchantErrorURL) {
        this.merchantErrorURL = merchantErrorURL;
    }

    public String getTrustPayCertFile() {
        return trustPayCertFile;
    }

    public void setTrustPayCertFile(String trustPayCertFile) {
        this.trustPayCertFile = trustPayCertFile;
    }

    public String getMerchantID() {
        return merchantID;
    }

    public void setMerchantID(String merchantID) {
        this.merchantID = merchantID;
    }

    public String getLogPath() {
        return logPath;
    }

    public void setLogPath(String logPath) {
        this.logPath = logPath;
    }

    public String getMerchantCertFile() {
        return merchantCertFile;
    }

    public void setMerchantCertFile(String merchantCertFile) {
        this.merchantCertFile = merchantCertFile;
    }

    public String getMerchantCertPassword() {
        return merchantCertPassword;
    }

    public void setMerchantCertPassword(String merchantCertPassword) {
        this.merchantCertPassword = merchantCertPassword;
    }

    public String getPrintLog() {
        return printLog;
    }

    public void setPrintLog(String printLog) {
        this.printLog = printLog;
    }

    public String getPfxFile() {
        return pfxFile;
    }

    public void setPfxFile(String pfxFile) {
        this.pfxFile = pfxFile;
    }

    public String getPfxPwd() {
        return pfxPwd;
    }

    public void setPfxPwd(String pfxPwd) {
        this.pfxPwd = pfxPwd;
    }

    public String getCerFile() {
        return cerFile;
    }

    public void setCerFile(String cerFile) {
        this.cerFile = cerFile;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

}